<div class="nav">
    <a class="sel" href="{:U('index')}">权限列表</a>
    <a href="{:U('add')}">添加权限</a>
</div>
<div class="list">
    <table class="table_list">
        <thead><tr>
                <td width="40px">ID</td>
                <td>权限名称</td>
                <td>验证字符</td>
                <td width="60px">顺序编号</td>
                <td width="60px">是否启用</td>
                <td width="150px">操作</td>
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="list">
            <tr>
                <td>{$list.purview_id}</td>
                <td style="text-align: left;"><if condition="$list['parent_id'] neq 0">|---</if>{$list.purview_name}</td>
                 <td class="edit_input" attr_t="check_str" attr_id="{$list.purview_id}">{$list.check_str}</td>
                <td class="edit_input" attr_t="order_id" attr_id="{$list.purview_id}">{$list.order_id}</td>
                <td class="edit_toggle" attr_t="is_enable" attr_id="{$list.purview_id}">{$list.is_enable}</td>
                <td><a class="btn_a" href="{:U('edit',Array('purview_id'=>$list['purview_id']))}">修改</a>&nbsp;
                    <a class="btn_a2" href="{:U('del',Array('purview_id'=>$list['purview_id']))}" onclick="return confirm('确定删除吗？')">删除</a></td>
            </tr>
        </foreach>
        </tbody>
        <tfoot>
            <tr><td colspan="6"><div class="page">{$page}</div></td>
            </tr>
        </tfoot>
    </table>
</div>
